-- GENERATED SPELL FOR [Centipaar Worker] --


function spell0_5458(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_5458', 631, 1)
end

function Sorts_5458(pUnit, Event)
local choix_sorts_5458 = math.random(0, 0)
if choix_sorts_5458 == 0 then
pUnit:RegisterEvent('spell0_5458', 1, 1)
end
end

function mob5458_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5458', math.random(1500, 3000), 1)
end

function mob5458_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5458_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5458_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5458, 1, 'mob5458_Action')
RegisterUnitEvent(5458, 2, 'mob5458_Leave')
RegisterUnitEvent(5458, 3, 'mob5458_Kill')
RegisterUnitEvent(5458, 4, 'mob5458_Die')
